package com.xzk.ExpressInnWeb.dao;

import com.xzk.ExpressInnWeb.bean.User;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface BaseUserDao {

    User findUserByID(int id);

    Map<String,Integer> consoleUser();

    List<User> findAllUsers(boolean split, int offset, int limit);

    User findUserByPhoneNum(String userphone);

    boolean insertUser(User user);

    boolean updateUser(int id, User newUser);

    boolean deleteUser(int id);

    void updateLoginTime(String userphone, Date date);

    boolean login(String userphone, String password);
}
